package com.imagination.applet.domain.revenue.order.service;

import com.alibaba.fastjson.JSONObject;
import com.imagination.applet.domain.revenue.order.model.OrderType;
import com.imagination.applet.domain.revenue.order.model.UserOrder;

import java.math.BigDecimal;
import java.util.Currency;
import java.util.Map;

public interface OrderService {

    UserOrder createOrder(Long userId, OrderType orderType, BigDecimal amount, Currency currency, Map<String, Object> extension);

    UserOrder queryOrder(Long userId, String traceNo);

    UserOrder wxCallBackOrder(String traceNo, JSONObject resData);

}
